﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

/// <summary>
///MasterPageBase 的摘要说明
/// </summary>
public class MasterPageBase : System.Web.UI.MasterPage
{
    public MasterPageBase()
    {
        //
        //TODO: 在此处添加构造函数逻辑
        //
    }

    // Path
    public string ThemePath(string imagePath)
    {
        return this.ResolveClientUrl("~/Images/" + imagePath);
    }

    public string FilePath(string filePath)
    {
        return this.ResolveClientUrl("~/" + filePath);
    }

    public string GetAPIDomain()
    {
        return ConfigurationManager.AppSettings.Get("APIDomain");
    }
}
